package com.tencreat.service.pt.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.quartz.JobDetailFactoryBean;

/**
 * 定时任务配置
 *
 * @Company: 深圳腾创互联科技有限公司
 * @link: https://tencreat.com/#/
 * @author tencreat
 */
///@Configuration
@Slf4j
public class SchedulePtConfig
{
    @Bean(name = "Job1")
    public JobDetailFactoryBean Job1() {
        JobDetailFactoryBean jobDetailFactory = new JobDetailFactoryBean();
        //关联我们定义的Job类
        //jobDetailFactory.setJobClass(PtTheLotteryJob.class);
        return jobDetailFactory;
    }

}
